<template>
	<view class="diaoru">
		<page-top title="生产日报表">
			<view class="" slot="left">
				<u-icon @click="clickPageTopEv" color="#FFFFFF" size="16px" name="arrow-left"></u-icon>
			</view>
		</page-top>
		<view class="button-def">
			<u-button style="background-color: #11A9F0;" type="primary" @click="addEv">新增</u-button>
			<u-button style="background-color: #11A9F0;" class="select" @click="selectEv" type="primary">查询</u-button>
			
		</view>
	</view>
</template>

<script>
		import pageTop from '@/components/pageTop.vue';
	export default {
		name: "wr",
		components: {
			pageTop: pageTop
		},
		data() {
			return {
			
			}
		},
		onLoad() {
			
		},
		mounted() {
			
		},
		methods: {
			clickPageTopEv(val) {
				// uni.switchTab({
				// 	url: '/pages/index/index'
				// });
				uni.navigateBack({
					delta:1
				});
			},
			addEv() {
				uni.navigateTo({
					url: '/pages/wr/add'
				});
			},
			selectEv() {
				uni.navigateTo({
					url: '/pages/wr/log?search=0'
				});
			}
		}


	}
</script>

<style lang="scss">
	.button-def {
		margin-top: 50px;
		padding-left: 20rpx;
		padding-right: 20rpx;
		box-sizing: border-box;
	}
	.select {
		margin-top: 10px;
	}
</style>